home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_1
/
solver.tip
< prev
next >
Wrap
Internet Message Format
|
1995-03-23
|
3KB
From comp.sys.hp48 Sat Mar 14 16:05:52 1992
Path: seq!rock!taco!gatech!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!psuvax1!psuvm!rjs106
From: RJS106@psuvm.psu.edu (Pierre Stanton)
Newsgroups: comp.sys.hp48
Subject: Very Small, Useful Routine
Message-ID: <92074.132005RJS106@psuvm.psu.edu>
Date: 14 Mar 92 18:20:05 GMT
Organization: Penn State University
Lines: 49
Supersedes: <92074.013834RJS106@psuvm.psu.edu>
I've created this very simple routine about 3 yrs ago and have been
using it often on my hp28. The hp48 version goes as follows.
<< 'your equation here' STEQ 30 MENU >>
What this simple program does is takes what ever equation is
inside the single quotes and stores it in the hp48's reserve
variable for the solver called STEQ. Then it goes directly
to the solver menu screen.
EXAMPLE: using pythagorian's theorem
'PYTHAG' CHDIR ;; creat a directory
PYTHAG ;; change to the directory you just made
<< 'C:2=A:2+B:2' STEQ 30 MENU >> ;; create the program
'PYTHAG.' STO ;; store the program under a different
;; name than the directory name
PYTHAG. ;; execute the program via menu key
Now just hit the menu key for 'PYTHAG.' and voila your in the solver
with the equation already there.
NOTES: I would highly recommend creating a directory first with
a descriptive name of your equation, then go into this directory,
create this program with your own equation in it, then store the
program under a simular but different descriptive name (i.e. don't give it
the exact same name as the directory). The reason for all of this
is to prevent cluttering up your current directory. Whenever you use the
solver, every time you use a variable that is not defined, the solver will
create a global variable for that variable. From the above sample A B C EQ
and PYTHAG would appear in the variable menus boxes. To make 'PYTHAG.' be
the 1st variable in the menu type { PYTHAG. } ORDER This is especially
useful when you have an equation with lots of variables and to run the
program you have to flip through the pages (i.e. using NXT or PREV) just
to find it.
If anyone finds this routine useful, please let me know by personal e-mail
Pierre
*****************************************************************
* Pierre-Andre Stanton *
* rjs106@psuvm.psu.edu <=== BITNET, E-MAIL ADDRESS *
* *
* Mechanical Engineer/Business Management/French student *
* Penn State Univ. Behrend College branch *
* *
*****************************************************************